import loginRoute from "@/router/login-route.ts";
import layoutRoute from "@/router/layout-route.ts";
import homeRoute from "@/router/home-route.ts";

const appRoutes = {
  root: {
    path: "/",
    redirect: () => {
      // let path = loginRoute.login.path;
      // if (useGeneralStore().isLogin) {
      //   path = homeRoute.home.path;
      // }

      const path = loginRoute.login.path
      return {
        path: path,
      };
    },
  },

  ...loginRoute,
  ...layoutRoute,
  ...homeRoute,
};

export default appRoutes;
